|
 |
Ger nous apporta ses lumieres en ce 2007/09/19 13:16:
> Zeger Knaepen wrote:
>
> If vars are defined as float then why the need to define them as such? On
> the other hand, integers are much faster so why not use both?
>
Integer operations are not faster than floating point ones, this is due to the
arithmetic coprocessor that is integrated in all processors since the advent of
the Pentium. In fact, the oposite is almost always thrue for any multiplication,
division and modulo. It was even the case for the 286, 386 and 486 whenever you
also had an arithmetic coprocessor installed on your machine.
--
Alain
-------------------------------------------------
Don't cry because it is over, smile because it happened.
Post a reply to this message
|
 |